<?php

namespace app\model;

class AdminModel extends \think\Model
{
    protected $table = "管理员";
    protected $pk = "adminId";

    public function librarys()
    {
        return $this->belongsToMany(LibraryModel::class, AdminLibraryPivot::class,
            "libraryId", "adminId");

    }

}